home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Displays.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  25.9 KB  |  1,029 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  21. __DISPLAYS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  29.     include 'Components.a'
  30.     ENDIF
  31. ;        include 'Types.a'                                            ;
  32. ;        include 'MixedMode.a'                                        ;
  33.  
  34.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  35.     include 'Video.a'
  36.     ENDIF
  37. ;        include 'Quickdraw.a'                                        ;
  38. ;            include 'QuickdrawText.a'                                ;
  39.     IF 0 THEN
  40.  
  41.  
  42.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  43.     include 'AppleEvents.a'
  44.     ENDIF
  45. ;        include 'Errors.a'                                            ;
  46. ;        include 'Memory.a'                                            ;
  47. ;        include 'OSUtils.a'                                        ;
  48. ;        include 'Events.a'                                            ;
  49. ;        include 'EPPC.a'                                            ;
  50. ;            include 'AppleTalk.a'                                    ;
  51. ;            include 'Files.a'                                        ;
  52. ;                include 'Finder.a'                                    ;
  53. ;            include 'PPCToolbox.a'                                    ;
  54. ;            include 'Processes.a'                                    ;
  55. ;        include 'Notification.a'                                    ;
  56.  
  57.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  58.     include 'Windows.a'
  59.     ENDIF
  60. ;        include 'Controls.a'                                        ;
  61. ;            include 'Menus.a'                                        ;
  62.  
  63.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  64.     include 'Events.a'
  65.     ENDIF
  66.  
  67.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  68.     include 'Processes.a'
  69.     ENDIF
  70.  
  71.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  72.     include 'Dialogs.a'
  73.     ENDIF
  74. ;        include 'TextEdit.a'                                        ;
  75.     ENDIF
  76.  
  77.  
  78. ; AppleEvents Core Suite 
  79. kAESystemConfigNotice            EQU        'cnfg'
  80. ; Core Suite types 
  81. kAEDisplayNotice                EQU        'dspl'
  82. kAEDisplaySummary                EQU        'dsum'
  83. keyDMConfigVersion                EQU        'dmcv'
  84. keyDMConfigFlags                EQU        'dmcf'
  85. keyDMConfigReserved                EQU        'dmcr'
  86. keyDisplayID                    EQU        'dmid'
  87. keyDisplayComponent                EQU        'dmdc'
  88. keyDisplayDevice                EQU        'dmdd'
  89. keyDisplayFlags                    EQU        'dmdf'
  90. keyDisplayMode                    EQU        'dmdm'
  91. keyDisplayModeReserved            EQU        'dmmr'
  92. keyDisplayReserved                EQU        'dmdr'
  93. keyDisplayMirroredId            EQU        'dmmi'
  94. keyDeviceFlags                    EQU        'dddf'
  95. keyDeviceDepthMode                EQU        'dddm'
  96. keyDeviceRect                    EQU        'dddr'
  97. keyPixMapRect                    EQU        'dpdr'
  98. keyPixMapHResolution            EQU        'dphr'
  99. keyPixMapVResolution            EQU        'dpvr'
  100. keyPixMapPixelType                EQU        'dppt'
  101. keyPixMapPixelSize                EQU        'dpps'
  102. keyPixMapCmpCount                EQU        'dpcc'
  103. keyPixMapCmpSize                EQU        'dpcs'
  104. keyPixMapAlignment                EQU        'dppa'
  105. keyPixMapResReserved            EQU        'dprr'
  106. keyPixMapReserved                EQU        'dppr'
  107. keyPixMapColorTableSeed            EQU        'dpct'
  108. keySummaryMenubar                EQU        'dsmb'
  109. keySummaryChanges                EQU        'dsch'
  110. keyDisplayOldConfig                EQU        'dold'
  111. keyDisplayNewConfig                EQU        'dnew'
  112.  
  113. dmOnlyActiveDisplays            EQU        true
  114. dmAllDisplays                    EQU        false
  115.  
  116. ; Switch Flags 
  117. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  118. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  119. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  120. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  121.  
  122. ;    Summary Change Flags (sticky bits indicating an operation was performed)
  123. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  124. ;
  125. kBeginEndConfigureBit            EQU        0
  126. kMovedDisplayBit                EQU        1
  127. kSetMainDisplayBit                EQU        2
  128. kSetDisplayModeBit                EQU        3
  129. kAddDisplayBit                    EQU        4
  130. kRemoveDisplayBit                EQU        5
  131. kNewDisplayBit                    EQU        6
  132. kDisposeDisplayBit                EQU        7
  133. kEnabledDisplayBit                EQU        8
  134. kDisabledDisplayBit                EQU        9
  135. kMirrorDisplayBit                EQU        10
  136. kUnMirrorDisplayBit                EQU        11
  137.  
  138. ; Notification Messages for extended call back routines 
  139. kDMNotifyInstalled                EQU        1                    ; At install time 
  140. kDMNotifyEvent                    EQU        2                    ; Post change time 
  141. kDMNotifyRemoved                EQU        3                    ; At remove time 
  142. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  143. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  144. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  145. ; Notification Flags 
  146. kExtendedNotificationProc        EQU        (1 << 16)
  147.  
  148. ; types for notifyType 
  149. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  150. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  151.  
  152. ; DisplayID/DeviceID constants 
  153. kDummyDeviceID                    EQU        $0FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  154. kInvalidDisplayID                EQU        $000                ; This is the invalid ID
  155. kFirstDisplayID                    EQU        $100
  156.  
  157. ; bits for panelListFlags 
  158. kAllowDuplicatesBit                EQU        0
  159.  
  160. ; Constants for fidelity checks 
  161. kNoFidelity                        EQU        0
  162. kMinimumFidelity                EQU        1
  163. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  164. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  165.  
  166. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  167. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  168. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  169. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  170.  
  171. ; portListFlags for DM_NewDevicePortList 
  172. ; Should offline devices be put into the port list (such as dummy display) 
  173. kPLIncludeOfflineDevicesBit        EQU        0
  174.  
  175. ; typedef unsigned long     DMFidelityType
  176. ; AVID is an ID for ports and devices the old DisplayID type
  177. ;    is carried on for compatibility
  178. ;
  179. ; typedef unsigned long     AVIDType
  180. ; typedef AVIDType             DisplayIDType
  181. ; typedef void                 *DMListType
  182. ; typedef unsigned long     DMListIndexType
  183. ; typedef void                 *AVPowerStatePtr
  184. DMComponentListEntryRec RECORD    0
  185. itemID                     ds.l   1        ; offset: $0 (0)        ; DisplayID Manager
  186. itemComponent             ds.l   1        ; offset: $4 (4)        ; Component Manager
  187. itemDescription             ds     ComponentDescription ; offset: $8 (8) ; We can always construct this if we use something beyond the compontent mgr.
  188. itemClass                 ds.l   1        ; offset: $1C (28)        ; Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  189. itemFidelity             ds.l   1        ; offset: $20 (32)        ; How good is this item for the specified search?
  190. itemSubClass             ds.l   1        ; offset: $24 (36)        ; Subclass of group to put this panel.  Can use to do sub-grouping (eg volume for volume panel and mute panel)
  191. itemSort                 ds     Point    ; offset: $28 (40)        ; Set to 0 - future to sort the items in a sub group.
  192. itemFlags                 ds.l   1        ; offset: $2C (44)        ; Set to 0 (future expansion)
  193. itemReserved             ds.l   1        ; offset: $30 (48)        ; What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  194. itemFuture1                 ds.l   1        ; offset: $34 (52)        ; Set to 0 (future expansion - probably an alternate code style)
  195. itemFuture2                 ds.l   1        ; offset: $38 (56)        ; Set to 0 (future expansion - probably an alternate code style)
  196. itemFuture3                 ds.l   1        ; offset: $3C (60)        ; Set to 0 (future expansion - probably an alternate code style)
  197. itemFuture4                 ds.l   1        ; offset: $40 (64)        ; Set to 0 (future expansion - probably an alternate code style)
  198. sizeof                     EQU *            ; size:   $44 (68)
  199.                         ENDR
  200.  
  201. ; typedef struct DMComponentListEntryRec  DMComponentListEntryRec
  202. ; typedef DMComponentListEntryRec  *DMComponentListEntryPtr
  203. ; ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  204. AVLocationRec             RECORD    0
  205. locationConstant         ds.l   1        ; offset: $0 (0)        ; Set to 0 (future expansion - probably an alternate code style)
  206. sizeof                     EQU *            ; size:   $4 (4)
  207.                         ENDR
  208.  
  209. ; typedef struct AVLocationRec  AVLocationRec
  210. ; typedef AVLocationRec     *AVLocationPtr
  211. DMDepthInfoRec             RECORD    0
  212. depthSwitchInfo             ds.l   1        ; offset: $0 (0)        ; This is the switch mode to choose this timing/depth 
  213. depthVPBlock             ds.l   1        ; offset: $4 (4)        ; VPBlock (including size, depth and format) 
  214. depthFlags                 ds.l   1        ; offset: $8 (8)        ; Reserved 
  215. depthReserved1             ds.l   1        ; offset: $C (12)        ; Reserved 
  216. depthReserved2             ds.l   1        ; offset: $10 (16)        ; Reserved 
  217. sizeof                     EQU *            ; size:   $14 (20)
  218.                         ENDR
  219.  
  220. ; typedef struct DMDepthInfoRec  DMDepthInfoRec
  221. ; typedef DMDepthInfoRec     *DMDepthInfoPtr
  222. DMDepthInfoBlockRec     RECORD    0
  223. depthBlockCount             ds.l   1        ; offset: $0 (0)        ; How many depths are there? 
  224. depthVPBlock             ds.l   1        ; offset: $4 (4)        ; Array of DMDepthInfoRec 
  225. depthBlockFlags             ds.l   1        ; offset: $8 (8)        ; Reserved 
  226. depthBlockReserved1         ds.l   1        ; offset: $C (12)        ; Reserved 
  227. depthBlockReserved2         ds.l   1        ; offset: $10 (16)        ; Reserved 
  228. sizeof                     EQU *            ; size:   $14 (20)
  229.                         ENDR
  230.  
  231. ; typedef struct DMDepthInfoBlockRec  DMDepthInfoBlockRec
  232. ; typedef DMDepthInfoBlockRec  *DMDepthInfoBlockPtr
  233. DMDisplayModeListEntryRec RECORD    0
  234. displayModeFlags         ds.l   1        ; offset: $0 (0)
  235. displayModeSwitchInfo     ds.l   1        ; offset: $4 (4)
  236. displayModeResolutionInfo ds.l   1        ; offset: $8 (8)
  237. displayModeTimingInfo     ds.l   1        ; offset: $C (12)
  238. displayModeDepthBlockInfo ds.l   1        ; offset: $10 (16)        ; Information about all the depths
  239. displayModeReserved         ds.l   1        ; offset: $14 (20)        ; Reserved
  240. displayModeName             ds.l   1        ; offset: $18 (24)        ; Name of the timing mode
  241. sizeof                     EQU *            ; size:   $1C (28)
  242.                         ENDR
  243.  
  244. ; typedef struct DMDisplayModeListEntryRec  DMDisplayModeListEntryRec
  245. ; typedef DMDisplayModeListEntryRec  *DMDisplayModeListEntryPtr
  246. DependentNotifyRec         RECORD    0
  247. notifyType                 ds.l   1        ; offset: $0 (0)        ; What type was the engine that made the change (may be zero)
  248. notifyClass                 ds.l   1        ; offset: $4 (4)        ; What class was the change (eg geometry, color etc)
  249. notifyPortID             ds.l   1        ; offset: $8 (8)        ; Which device was touched (kInvalidDisplayID -> all or none)
  250. notifyComponent             ds.l   1        ; offset: $C (12)        ; What engine did it (may be 0)?
  251. notifyVersion             ds.l   1        ; offset: $10 (16)        ; Set to 0 (future expansion)
  252. notifyFlags                 ds.l   1        ; offset: $14 (20)        ; Set to 0 (future expansion)
  253. notifyReserved             ds.l   1        ; offset: $18 (24)        ; Set to 0 (future expansion)
  254. notifyFuture             ds.l   1        ; offset: $1C (28)        ; Set to 0 (future expansion)
  255. sizeof                     EQU *            ; size:   $20 (32)
  256.                         ENDR
  257.  
  258. ; typedef struct DependentNotifyRec  DependentNotifyRec
  259. ; typedef DependentNotifyRec  *DependentNotifyPtr
  260. ; Exports to support Interfaces library containing unused calls 
  261. ;
  262. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  263. ;
  264.     IF ¬ GENERATINGCFM THEN
  265.         Macro
  266.         _DMGetFirstScreenDevice
  267.             moveq    #0,d0
  268.             dc.w     $ABEB
  269.         EndM
  270.     ELSE
  271.         IMPORT_CFM_FUNCTION    DMGetFirstScreenDevice
  272.     ENDIF
  273.  
  274. ;
  275. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  276. ;
  277.     IF ¬ GENERATINGCFM THEN
  278.         Macro
  279.         _DMGetNextScreenDevice
  280.             moveq    #1,d0
  281.             dc.w     $ABEB
  282.         EndM
  283.     ELSE
  284.         IMPORT_CFM_FUNCTION    DMGetNextScreenDevice
  285.     ENDIF
  286.  
  287. ;
  288. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  289. ;
  290.     IF ¬ GENERATINGCFM THEN
  291.         Macro
  292.         _DMDrawDesktopRect
  293.             moveq    #2,d0
  294.             dc.w     $ABEB
  295.         EndM
  296.     ELSE
  297.         IMPORT_CFM_FUNCTION    DMDrawDesktopRect
  298.     ENDIF
  299.  
  300. ;
  301. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  302. ;
  303.     IF ¬ GENERATINGCFM THEN
  304.         Macro
  305.         _DMDrawDesktopRegion
  306.             moveq    #3,d0
  307.             dc.w     $ABEB
  308.         EndM
  309.     ELSE
  310.         IMPORT_CFM_FUNCTION    DMDrawDesktopRegion
  311.     ENDIF
  312.  
  313. ;
  314. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  315. ;
  316.     IF ¬ GENERATINGCFM THEN
  317.         Macro
  318.         _DMBeginConfigureDisplays
  319.             move.w    #$0206,d0
  320.             dc.w     $ABEB
  321.         EndM
  322.     ELSE
  323.         IMPORT_CFM_FUNCTION    DMBeginConfigureDisplays
  324.     ENDIF
  325.  
  326. ;
  327. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  328. ;
  329.     IF ¬ GENERATINGCFM THEN
  330.         Macro
  331.         _DMEndConfigureDisplays
  332.             move.w    #$0207,d0
  333.             dc.w     $ABEB
  334.         EndM
  335.     ELSE
  336.         IMPORT_CFM_FUNCTION    DMEndConfigureDisplays
  337.     ENDIF
  338.  
  339. ;
  340. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  341. ;
  342.     IF ¬ GENERATINGCFM THEN
  343.         Macro
  344.         _DMAddDisplay
  345.             move.w    #$0D08,d0
  346.             dc.w     $ABEB
  347.         EndM
  348.     ELSE
  349.         IMPORT_CFM_FUNCTION    DMAddDisplay
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  354. ;
  355.     IF ¬ GENERATINGCFM THEN
  356.         Macro
  357.         _DMMoveDisplay
  358.             move.w    #$0609,d0
  359.             dc.w     $ABEB
  360.         EndM
  361.     ELSE
  362.         IMPORT_CFM_FUNCTION    DMMoveDisplay
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  367. ;
  368.     IF ¬ GENERATINGCFM THEN
  369.         Macro
  370.         _DMDisableDisplay
  371.             move.w    #$040A,d0
  372.             dc.w     $ABEB
  373.         EndM
  374.     ELSE
  375.         IMPORT_CFM_FUNCTION    DMDisableDisplay
  376.     ENDIF
  377.  
  378. ;
  379. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  380. ;
  381.     IF ¬ GENERATINGCFM THEN
  382.         Macro
  383.         _DMEnableDisplay
  384.             move.w    #$040B,d0
  385.             dc.w     $ABEB
  386.         EndM
  387.     ELSE
  388.         IMPORT_CFM_FUNCTION    DMEnableDisplay
  389.     ENDIF
  390.  
  391. ;
  392. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  393. ;
  394.     IF ¬ GENERATINGCFM THEN
  395.         Macro
  396.         _DMRemoveDisplay
  397.             move.w    #$040C,d0
  398.             dc.w     $ABEB
  399.         EndM
  400.     ELSE
  401.         IMPORT_CFM_FUNCTION    DMRemoveDisplay
  402.     ENDIF
  403.  
  404. ;
  405. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  406. ;
  407.     IF ¬ GENERATINGCFM THEN
  408.         Macro
  409.         _DMSetMainDisplay
  410.             move.w    #$0410,d0
  411.             dc.w     $ABEB
  412.         EndM
  413.     ELSE
  414.         IMPORT_CFM_FUNCTION    DMSetMainDisplay
  415.     ENDIF
  416.  
  417. ;
  418. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  419. ;
  420.     IF ¬ GENERATINGCFM THEN
  421.         Macro
  422.         _DMSetDisplayMode
  423.             move.w    #$0A11,d0
  424.             dc.w     $ABEB
  425.         EndM
  426.     ELSE
  427.         IMPORT_CFM_FUNCTION    DMSetDisplayMode
  428.     ENDIF
  429.  
  430. ;
  431. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  432. ;
  433.     IF ¬ GENERATINGCFM THEN
  434.         Macro
  435.         _DMCheckDisplayMode
  436.             move.w    #$0C12,d0
  437.             dc.w     $ABEB
  438.         EndM
  439.     ELSE
  440.         IMPORT_CFM_FUNCTION    DMCheckDisplayMode
  441.     ENDIF
  442.  
  443. ;
  444. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  445. ;
  446.     IF ¬ GENERATINGCFM THEN
  447.         Macro
  448.         _DMGetDeskRegion
  449.             move.w    #$0213,d0
  450.             dc.w     $ABEB
  451.         EndM
  452.     ELSE
  453.         IMPORT_CFM_FUNCTION    DMGetDeskRegion
  454.     ENDIF
  455.  
  456. ;
  457. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  458. ;
  459.     IF ¬ GENERATINGCFM THEN
  460.         Macro
  461.         _DMRegisterNotifyProc
  462.             move.w    #$0414,d0
  463.             dc.w     $ABEB
  464.         EndM
  465.     ELSE
  466.         IMPORT_CFM_FUNCTION    DMRegisterNotifyProc
  467.     ENDIF
  468.  
  469. ;
  470. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  471. ;
  472.     IF ¬ GENERATINGCFM THEN
  473.         Macro
  474.         _DMRemoveNotifyProc
  475.             move.w    #$0415,d0
  476.             dc.w     $ABEB
  477.         EndM
  478.     ELSE
  479.         IMPORT_CFM_FUNCTION    DMRemoveNotifyProc
  480.     ENDIF
  481.  
  482. ;
  483. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  484. ;
  485.     IF ¬ GENERATINGCFM THEN
  486.         Macro
  487.         _DMQDIsMirroringCapable
  488.             move.w    #$0216,d0
  489.             dc.w     $ABEB
  490.         EndM
  491.     ELSE
  492.         IMPORT_CFM_FUNCTION    DMQDIsMirroringCapable
  493.     ENDIF
  494.  
  495. ;
  496. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  497. ;
  498.     IF ¬ GENERATINGCFM THEN
  499.         Macro
  500.         _DMCanMirrorNow
  501.             move.w    #$0217,d0
  502.             dc.w     $ABEB
  503.         EndM
  504.     ELSE
  505.         IMPORT_CFM_FUNCTION    DMCanMirrorNow
  506.     ENDIF
  507.  
  508. ;
  509. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  510. ;
  511.     IF ¬ GENERATINGCFM THEN
  512.         Macro
  513.         _DMIsMirroringOn
  514.             move.w    #$0218,d0
  515.             dc.w     $ABEB
  516.         EndM
  517.     ELSE
  518.         IMPORT_CFM_FUNCTION    DMIsMirroringOn
  519.     ENDIF
  520.  
  521. ;
  522. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  523. ;
  524.     IF ¬ GENERATINGCFM THEN
  525.         Macro
  526.         _DMMirrorDevices
  527.             move.w    #$0619,d0
  528.             dc.w     $ABEB
  529.         EndM
  530.     ELSE
  531.         IMPORT_CFM_FUNCTION    DMMirrorDevices
  532.     ENDIF
  533.  
  534. ;
  535. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  536. ;
  537.     IF ¬ GENERATINGCFM THEN
  538.         Macro
  539.         _DMUnmirrorDevice
  540.             move.w    #$041A,d0
  541.             dc.w     $ABEB
  542.         EndM
  543.     ELSE
  544.         IMPORT_CFM_FUNCTION    DMUnmirrorDevice
  545.     ENDIF
  546.  
  547. ;
  548. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  549. ;
  550.     IF ¬ GENERATINGCFM THEN
  551.         Macro
  552.         _DMGetNextMirroredDevice
  553.             move.w    #$041B,d0
  554.             dc.w     $ABEB
  555.         EndM
  556.     ELSE
  557.         IMPORT_CFM_FUNCTION    DMGetNextMirroredDevice
  558.     ENDIF
  559.  
  560. ;
  561. ; pascal OSErr DMBlockMirroring(void)
  562. ;
  563.     IF ¬ GENERATINGCFM THEN
  564.         Macro
  565.         _DMBlockMirroring
  566.             moveq    #28,d0
  567.             dc.w     $ABEB
  568.         EndM
  569.     ELSE
  570.         IMPORT_CFM_FUNCTION    DMBlockMirroring
  571.     ENDIF
  572.  
  573. ;
  574. ; pascal OSErr DMUnblockMirroring(void)
  575. ;
  576.     IF ¬ GENERATINGCFM THEN
  577.         Macro
  578.         _DMUnblockMirroring
  579.             moveq    #29,d0
  580.             dc.w     $ABEB
  581.         EndM
  582.     ELSE
  583.         IMPORT_CFM_FUNCTION    DMUnblockMirroring
  584.     ENDIF
  585.  
  586. ;
  587. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  588. ;
  589.     IF ¬ GENERATINGCFM THEN
  590.         Macro
  591.         _DMGetDisplayMgrA5World
  592.             move.w    #$021E,d0
  593.             dc.w     $ABEB
  594.         EndM
  595.     ELSE
  596.         IMPORT_CFM_FUNCTION    DMGetDisplayMgrA5World
  597.     ENDIF
  598.  
  599. ;
  600. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  601. ;
  602.     IF ¬ GENERATINGCFM THEN
  603.         Macro
  604.         _DMGetDisplayIDByGDevice
  605.             move.w    #$051F,d0
  606.             dc.w     $ABEB
  607.         EndM
  608.     ELSE
  609.         IMPORT_CFM_FUNCTION    DMGetDisplayIDByGDevice
  610.     ENDIF
  611.  
  612. ;
  613. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  614. ;
  615.     IF ¬ GENERATINGCFM THEN
  616.         Macro
  617.         _DMGetGDeviceByDisplayID
  618.             move.w    #$0520,d0
  619.             dc.w     $ABEB
  620.         EndM
  621.     ELSE
  622.         IMPORT_CFM_FUNCTION    DMGetGDeviceByDisplayID
  623.     ENDIF
  624.  
  625. ;
  626. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  627. ;
  628.     IF ¬ GENERATINGCFM THEN
  629.         Macro
  630.         _DMSetDisplayComponent
  631.             move.w    #$0421,d0
  632.             dc.w     $ABEB
  633.         EndM
  634.     ELSE
  635.         IMPORT_CFM_FUNCTION    DMSetDisplayComponent
  636.     ENDIF
  637.  
  638. ;
  639. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  640. ;
  641.     IF ¬ GENERATINGCFM THEN
  642.         Macro
  643.         _DMGetDisplayComponent
  644.             move.w    #$0422,d0
  645.             dc.w     $ABEB
  646.         EndM
  647.     ELSE
  648.         IMPORT_CFM_FUNCTION    DMGetDisplayComponent
  649.     ENDIF
  650.  
  651. ;
  652. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  653. ;
  654.     IF ¬ GENERATINGCFM THEN
  655.         Macro
  656.         _DMNewDisplay
  657.             move.w    #$0D23,d0
  658.             dc.w     $ABEB
  659.         EndM
  660.     ELSE
  661.         IMPORT_CFM_FUNCTION    DMNewDisplay
  662.     ENDIF
  663.  
  664. ;
  665. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  666. ;
  667.     IF ¬ GENERATINGCFM THEN
  668.         Macro
  669.         _DMDisposeDisplay
  670.             move.w    #$0424,d0
  671.             dc.w     $ABEB
  672.         EndM
  673.     ELSE
  674.         IMPORT_CFM_FUNCTION    DMDisposeDisplay
  675.     ENDIF
  676.  
  677. ;
  678. ; pascal OSErr DMResolveDisplayComponents(void)
  679. ;
  680.     IF ¬ GENERATINGCFM THEN
  681.         Macro
  682.         _DMResolveDisplayComponents
  683.             moveq    #37,d0
  684.             dc.w     $ABEB
  685.         EndM
  686.     ELSE
  687.         IMPORT_CFM_FUNCTION    DMResolveDisplayComponents
  688.     ENDIF
  689.  
  690. ;
  691. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  692. ;
  693.     IF ¬ GENERATINGCFM THEN
  694.         Macro
  695.         _DMRegisterExtendedNotifyProc
  696.             move.w    #$07EF,d0
  697.             dc.w     $ABEB
  698.         EndM
  699.     ELSE
  700.         IMPORT_CFM_FUNCTION    DMRegisterExtendedNotifyProc
  701.     ENDIF
  702.  
  703. ;
  704. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  705. ;
  706.     IF ¬ GENERATINGCFM THEN
  707.         Macro
  708.         _DMRemoveExtendedNotifyProc
  709.             move.w    #$0726,d0
  710.             dc.w     $ABEB
  711.         EndM
  712.     ELSE
  713.         IMPORT_CFM_FUNCTION    DMRemoveExtendedNotifyProc
  714.     ENDIF
  715.  
  716. ;
  717. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  718. ;
  719.     IF ¬ GENERATINGCFM THEN
  720.         Macro
  721.         _DMNewAVPanelList
  722.             move.w    #$0C27,d0
  723.             dc.w     $ABEB
  724.         EndM
  725.     ELSE
  726.         IMPORT_CFM_FUNCTION    DMNewAVPanelList
  727.     ENDIF
  728.  
  729. ;
  730. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  731. ;
  732.     IF ¬ GENERATINGCFM THEN
  733.         Macro
  734.         _DMNewAVEngineList
  735.             move.w    #$0C28,d0
  736.             dc.w     $ABEB
  737.         EndM
  738.     ELSE
  739.         IMPORT_CFM_FUNCTION    DMNewAVEngineList
  740.     ENDIF
  741.  
  742. ;
  743. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  744. ;
  745.     IF ¬ GENERATINGCFM THEN
  746.         Macro
  747.         _DMNewAVDeviceList
  748.             move.w    #$0A29,d0
  749.             dc.w     $ABEB
  750.         EndM
  751.     ELSE
  752.         IMPORT_CFM_FUNCTION    DMNewAVDeviceList
  753.     ENDIF
  754.  
  755. ;
  756. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  757. ;
  758.     IF ¬ GENERATINGCFM THEN
  759.         Macro
  760.         _DMNewAVPortListByPortType
  761.             move.w    #$0A2A,d0
  762.             dc.w     $ABEB
  763.         EndM
  764.     ELSE
  765.         IMPORT_CFM_FUNCTION    DMNewAVPortListByPortType
  766.     ENDIF
  767.  
  768. ;
  769. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  770. ;
  771.     IF ¬ GENERATINGCFM THEN
  772.         Macro
  773.         _DMGetIndexedComponentFromList
  774.             move.w    #$0A2B,d0
  775.             dc.w     $ABEB
  776.         EndM
  777.     ELSE
  778.         IMPORT_CFM_FUNCTION    DMGetIndexedComponentFromList
  779.     ENDIF
  780.  
  781. ;
  782. ; pascal OSErr DMDisposeList(DMListType panelList)
  783. ;
  784.     IF ¬ GENERATINGCFM THEN
  785.         Macro
  786.         _DMDisposeList
  787.             move.w    #$022C,d0
  788.             dc.w     $ABEB
  789.         EndM
  790.     ELSE
  791.         IMPORT_CFM_FUNCTION    DMDisposeList
  792.     ENDIF
  793.  
  794. ;
  795. ; pascal OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 *name)
  796. ;
  797.     IF ¬ GENERATINGCFM THEN
  798.         Macro
  799.         _DMGetNameByAVID
  800.             move.w    #$062D,d0
  801.             dc.w     $ABEB
  802.         EndM
  803.     ELSE
  804.         IMPORT_CFM_FUNCTION    DMGetNameByAVID
  805.     ENDIF
  806.  
  807. ;
  808. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  809. ;
  810.     IF ¬ GENERATINGCFM THEN
  811.         Macro
  812.         _DMNewAVIDByPortComponent
  813.             move.w    #$082E,d0
  814.             dc.w     $ABEB
  815.         EndM
  816.     ELSE
  817.         IMPORT_CFM_FUNCTION    DMNewAVIDByPortComponent
  818.     ENDIF
  819.  
  820. ;
  821. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  822. ;
  823.     IF ¬ GENERATINGCFM THEN
  824.         Macro
  825.         _DMGetPortComponentByAVID
  826.             move.w    #$082F,d0
  827.             dc.w     $ABEB
  828.         EndM
  829.     ELSE
  830.         IMPORT_CFM_FUNCTION    DMGetPortComponentByAVID
  831.     ENDIF
  832.  
  833. ;
  834. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  835. ;
  836.     IF ¬ GENERATINGCFM THEN
  837.         Macro
  838.         _DMSendDependentNotification
  839.             move.w    #$0A30,d0
  840.             dc.w     $ABEB
  841.         EndM
  842.     ELSE
  843.         IMPORT_CFM_FUNCTION    DMSendDependentNotification
  844.     ENDIF
  845.  
  846. ;
  847. ; pascal OSErr DMDisposeAVComponent(Component theAVComponent)
  848. ;
  849.     IF ¬ GENERATINGCFM THEN
  850.         Macro
  851.         _DMDisposeAVComponent
  852.             move.w    #$0231,d0
  853.             dc.w     $ABEB
  854.         EndM
  855.     ELSE
  856.         IMPORT_CFM_FUNCTION    DMDisposeAVComponent
  857.     ENDIF
  858.  
  859. ;
  860. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  861. ;
  862.     IF ¬ GENERATINGCFM THEN
  863.         Macro
  864.         _DMSaveScreenPrefs
  865.             move.w    #$0632,d0
  866.             dc.w     $ABEB
  867.         EndM
  868.     ELSE
  869.         IMPORT_CFM_FUNCTION    DMSaveScreenPrefs
  870.     ENDIF
  871.  
  872. ;
  873. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  874. ;
  875.     IF ¬ GENERATINGCFM THEN
  876.         Macro
  877.         _DMNewAVIDByDeviceComponent
  878.             move.w    #$0833,d0
  879.             dc.w     $ABEB
  880.         EndM
  881.     ELSE
  882.         IMPORT_CFM_FUNCTION    DMNewAVIDByDeviceComponent
  883.     ENDIF
  884.  
  885. ;
  886. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  887. ;
  888.     IF ¬ GENERATINGCFM THEN
  889.         Macro
  890.         _DMNewAVPortListByDeviceAVID
  891.             move.w    #$0C34,d0
  892.             dc.w     $ABEB
  893.         EndM
  894.     ELSE
  895.         IMPORT_CFM_FUNCTION    DMNewAVPortListByDeviceAVID
  896.     ENDIF
  897.  
  898. ;
  899. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  900. ;
  901.     IF ¬ GENERATINGCFM THEN
  902.         Macro
  903.         _DMGetDeviceComponentByAVID
  904.             move.w    #$0835,d0
  905.             dc.w     $ABEB
  906.         EndM
  907.     ELSE
  908.         IMPORT_CFM_FUNCTION    DMGetDeviceComponentByAVID
  909.     ENDIF
  910.  
  911. ;
  912. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  913. ;
  914.     IF ¬ GENERATINGCFM THEN
  915.         Macro
  916.         _DMNewDisplayModeList
  917.             move.w    #$0A36,d0
  918.             dc.w     $ABEB
  919.         EndM
  920.     ELSE
  921.         IMPORT_CFM_FUNCTION    DMNewDisplayModeList
  922.     ENDIF
  923.  
  924. ;
  925. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  926. ;
  927.     IF ¬ GENERATINGCFM THEN
  928.         Macro
  929.         _DMGetIndexedDisplayModeFromList
  930.             move.w    #$0A37,d0
  931.             dc.w     $ABEB
  932.         EndM
  933.     ELSE
  934.         IMPORT_CFM_FUNCTION    DMGetIndexedDisplayModeFromList
  935.     ENDIF
  936.  
  937. ;
  938. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  939. ;
  940.     IF ¬ GENERATINGCFM THEN
  941.         Macro
  942.         _DMGetGraphicInfoByAVID
  943.             move.w    #$0838,d0
  944.             dc.w     $ABEB
  945.         EndM
  946.     ELSE
  947.         IMPORT_CFM_FUNCTION    DMGetGraphicInfoByAVID
  948.     ENDIF
  949.  
  950. ;
  951. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  952. ;
  953.     IF ¬ GENERATINGCFM THEN
  954.         Macro
  955.         _DMGetAVPowerState
  956.             move.w    #$0839,d0
  957.             dc.w     $ABEB
  958.         EndM
  959.     ELSE
  960.         IMPORT_CFM_FUNCTION    DMGetAVPowerState
  961.     ENDIF
  962.  
  963. ;
  964. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
  965. ;
  966.     IF ¬ GENERATINGCFM THEN
  967.         Macro
  968.         _DMSetAVPowerState
  969.             move.w    #$083A,d0
  970.             dc.w     $ABEB
  971.         EndM
  972.     ELSE
  973.         IMPORT_CFM_FUNCTION    DMSetAVPowerState
  974.     ENDIF
  975.  
  976. ;
  977. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  978. ;
  979.     IF ¬ GENERATINGCFM THEN
  980.         Macro
  981.         _DMGetDeviceAVIDByPortAVID
  982.             move.w    #$043B,d0
  983.             dc.w     $ABEB
  984.         EndM
  985.     ELSE
  986.         IMPORT_CFM_FUNCTION    DMGetDeviceAVIDByPortAVID
  987.     ENDIF
  988.  
  989. ;
  990. ; pascal OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
  991. ;
  992.     IF ¬ GENERATINGCFM THEN
  993.         Macro
  994.         _DMGetEnableByAVID
  995.             move.w    #$063C,d0
  996.             dc.w     $ABEB
  997.         EndM
  998.     ELSE
  999.         IMPORT_CFM_FUNCTION    DMGetEnableByAVID
  1000.     ENDIF
  1001.  
  1002. ;
  1003. ; pascal OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
  1004. ;
  1005.     IF ¬ GENERATINGCFM THEN
  1006.         Macro
  1007.         _DMSetEnableByAVID
  1008.             move.w    #$053D,d0
  1009.             dc.w     $ABEB
  1010.         EndM
  1011.     ELSE
  1012.         IMPORT_CFM_FUNCTION    DMSetEnableByAVID
  1013.     ENDIF
  1014.  
  1015. ;
  1016. ; pascal OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
  1017. ;
  1018.     IF ¬ GENERATINGCFM THEN
  1019.         Macro
  1020.         _DMGetDisplayMode
  1021.             move.w    #$043E,d0
  1022.             dc.w     $ABEB
  1023.         EndM
  1024.     ELSE
  1025.         IMPORT_CFM_FUNCTION    DMGetDisplayMode
  1026.     ENDIF
  1027.  
  1028.     ENDIF ; __DISPLAYS__
  1029.